package com.lgx.mall.basic.dao;

import java.util.List;

import com.lgx.common.exception.DataException;
import com.lgx.common.web.Pagination;
import com.lgx.mall.basic.entity.Fare;

public interface IFareDao {

	public Fare createFare(Fare fare) throws DataException;      		//创建Fare
	public Fare updateFare(Fare fare) throws DataException;			    //修改Fare
	public void deleteFare(Fare fare) throws DataException;				//根据对象删除Fare
	public void deleteFareById(long id) throws DataException;		    		//根据id删除Fare
	public void deleteFare(String[] ids) throws DataException;          		    //多项删除
	public Fare findFareById(long id);							        	//根据id查找Fare
	public List<Fare> findFareList();
	
	/**
	 * 
	 * @param fromCity 发货地
	 * @param toProvince 收货省
	 * @param toCity 收货市
	 * @param toRegion 收货县区
	 * @return
	 */
	public List<Fare> findFareList(String fromCity,String toProvince,String toCity,String toRegion);
	public Pagination findFarePagination(String fromCity,String toCity,int pageSize,int pageNum);
}
